package excel.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum ExcelValidEnum {

    DATE(
        "^(?:(?!0000)[0-9]{4}-(?:(?:0[1-9]|1[0-2])-(?:0[1-9]|1[0-9]|2[0-8])|(?:0[13-9]|1[0-2])-(?:29|30)|" + "(?:0" + "[13578]|1[02])-31)|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)" + "-02-29)$",
        "不是（yyyy-MM-dd）日期格式"),

    TIME("^([01]\\d|2[0-3]):([0-5]\\d):([0-5]\\d)$", "不是（HH:mm:ss）时间格式");

//    EMAIL(PatternPool.EMAIL.pattern(), "不是email格式"),
//
//    MOBILE(PatternPool.MOBILE.pattern(), "不是手机号格式"),
//
//    CITIZEN_ID(PatternPool.CITIZEN_ID.pattern(), "不是身份证号格式"),
//
//    URL(PatternPool.URL.pattern(), "不是URL格式"),
//
//    NUMBERS("[0-9]*\\.?[0-9]+", "不是数字格式"),
//
//    GENERAL(PatternPool.GENERAL.pattern(), "只能包含英文字母 、数字和下划线");

    private final String pattern;

    private final String message;
}
